home comics writing pictures archive about

ReadHex16Test.asm

Language: 8080 Assembly
Last Modified: 2022-11-12 4:27:45 PM UTC
File Size: 683 bytes
http://www.penguinstew.ca/example/AltairHexDump/ReadHex16Test.asm
.org 0
LXI SP, 173000Q ; 000000: 061 000 366 Init stack pointer
MVI A, 3Q ; 000003: 076 003 Clear/Init 2SIO port
OUT 20Q ; 000005: 323 020
MVI A, 25Q ; 000007: 076 025
OUT 20Q ; 000011: 323 020
LOOP: CALL ReadHex16 ; 000013: 315 222 366 Read word
MOV A, D ; 000016: 172
CALL PrintHex8 ; 000017: 315 337 366 Print High byte
MOV A, E ; 000022: 173
CALL PrintHex8 ; 000023: 315 337 366 Print Low Byte
JMP LOOP ; 000026: 303 013 000
1
2
3
4
5
6
7
8
9
10
11
12